<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="js/vue.js"></script>
    <style>
        *{
            margin: 0;
            padding: 0;
            list-style: none;
        }
        .error{
            color:red;
        }
    </style>
</head>
<body>
    <div id="app">
        <div :class="myclass">字符串{{username}}</div>
        <div> 用户名 <input  :value="username"  /> </div>
        <div> 用户名 <input  v-bind:value="username"  /> </div>
        <div v-html="html"> </div>
    </div>
   
</body>
<script>
    new   Vue({
        el:"#app",
        data:{//js的基本的数据类型
            username:"lala",
            html:"<button>你好</button>",
            myclass:"error"
        },
        methods:{

        }
    })


</script>
</html>